package com.freedom.admin.application.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freedom.admin.infrastructure.persistence.pojo.bo.PermissionBO;
import com.freedom.admin.infrastructure.persistence.pojo.form.PermissionForm;
import com.freedom.admin.infrastructure.persistence.pojo.vo.perm.PermissionPageVO;
import com.freedom.admin.infrastructure.persistence.pojo.vo.perm.PermissionVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface PermissionConverter {
    Page<PermissionPageVO> pageVO(Page<PermissionBO> permissionBOPage);

    List<PermissionVO> toVO(List<PermissionBO> permissionBOList);
    PermissionVO toVO(PermissionBO permissionBO);

    PermissionBO toBO(PermissionForm permissionForm);
}
